#!/usr/bin/env node

const fs = require('fs'),
      fileName = process.argv[2] || __filename,
      log = console.log;
let num = 1;
try{
//  let arr = fs.readFileSync(fileName).toString('utf8').split('\n');
//  for(let i = 0; i < arr.length; i++){
//    log(i+1 + '    ' + arr[i]);
//  }

  fs.readFileSync(fileName)
    .toString('utf8')
    .split('\n')
    .forEach(line => log(`${num++}\t${line}`));

  //log(fs.readFileSync(fileName).toString('utf8'));
}catch(e){
  log(e.message);
}

